home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #5 / Software USA Volume 4.05.iso / mac / Education / HTML Tricks / Extreme Mac HTML Tricks v2.1 / Extreme Mac HTML Tricks v2.1.rsrc / TEXT_133.txt < prev    next >
Text File  |  1996-10-31  |  3KB  |  101 lines

  1.  
  2.  
  3.     In this chapter you'll learn how to  align text and images. (You don't know how to add images in yet. Images are coming up in a later lesson)
  4.  
  5.  
  6.  
  7.         The divider examples don't use an ending to close a command because they are used once, not in a continuation. The <dd> allows you to indent a paragraph, making the text look like the indentation of this paragraph you're now reading. The <p> you should already know. It gives you a new paragraph, and writes whatever else below the last paragraph. Can be used it stacking images and text. The <hr> is a very common one. You probably have wondered how they make a horizontal line going accross a page. (Like the colored one above. But this one is just grey. You must have seen them while searching the web)
  8. The <br> is similar to the <p> (new paragraph) but it doesn't move the next paragraph down as far.
  9. <dd> indent paragraph
  10. <P> new paragraph
  11. <HR> add horizontal line
  12. <BR> Line Break
  13. Below you can see the <dd> indentation, the difference between the <br> (top one) and <p> (bottom one) both after the comma. And the <hr> is at work as well, adding those grey separator lines.
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. You should be able to figure out the code for the image above. If not here it is:
  23. <hr>
  24. <dd>Welcome to Extreme Mac! I hope your learning your, <br> html the easy way!
  25. <hr>
  26. <dd>Welcome to Extreme Mac! I hope your learning your, <p> html the easy way!
  27. <hr>
  28.  
  29.     I think you're ready for a some more complicated html. Below, I'll show you how to make your <hr> (divider line) specified sizes. It's easy once you get the hang of it.
  30.  
  31.  
  32. 1) To make a divider line thicker use this:
  33. <HR SIZE=pixel size>
  34. 2) To make a divider line have more width across screen use this:
  35. <HR WIDTH=pixel size>
  36. 3) To make a divider line a certain percentage of the width accross screen use this:
  37. <HR WIDTH=screen%>
  38. 4) To make your divider a solid line, use this:
  39. <HR NOSHADE>
  40.  
  41.  
  42. ‚Ä¢Using the example 3 is nice because everybody has a different size monitor, so your divider will always look good on a 17 inch vs. a 12 inch.
  43.  
  44.  
  45. ‚Ä¢Below are some examples of those dividers in use.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. ‚Ä¢Below is the code I used to make the image above:
  53. <HR SIZE=10>
  54. <HR WIDTH=200>
  55. <HR WIDTH=30%>
  56. <HR NOSHADE>
  57.  
  58.  
  59. ‚Ä¢For your web page, lets add in  2 horizontal line confugurations in 1. Make it 30% (Example 3) and a thickness of 10 pixels. You will be replacing the <p> because the divider lines already configure it in with it.
  60. Below is the code:
  61. <hr width=30% size=10>
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ‚Ä¢Put it under your heading. Your page should now look like this:
  71.  
  72.                                                                                  Extreme Mac
  73.  
  74.  //   //   //////
  75.  /////        //
  76. // //    //////
  77.  
  78.  
  79. ‚Ä¢You page's code should now look similar to this:
  80.  
  81. <html>
  82. <HEAD>
  83. <TITLE>Put the Title Here</TITLE>
  84. </HEAD>
  85. <body bgcolor="#ffffff" background="imagelocation.gif" text="#000000" link="#0000ff" vlink="#00005a">
  86. <FONT COLOR="DD0000"> <center><h1><b>Extreme Mac</b></h1></center></FONT> 
  87. <hr width=30% size=10>
  88. <pre>
  89.   //   //   //////
  90.  /////        //
  91. // //    //////
  92. </pre>
  93. <p>
  94. </body>
  95. </html>
  96.  
  97.  
  98.  
  99.  
  100.  
  101.